<template>
  <div class="wrapper_1200 selectedIndex mb-50px" v-if="show">
    <div class="w-100%">
      <div class="acea-row flex-between-center mb-30px bg-#e93323 py-10px px-20px rounded-8px">
        <div class="flex-1 flex justify-start items-center gap-20px text-#fff title font-500 alimama">
          <div class="text-28px">
            新品推荐
          </div>
          <div class="flex-1 flex justify-start items-center gap-10px">
            每日更新
          </div>
        </div>
        <div class="text-14px text-#fff oppoSans-R cursors" @click="handleLeave">
            更多<span class="iconfont icon-gengduo ml-4px"></span></div>
      </div>
      <dailyNewListItem @handleSubmitLeave="handleSubmitLeave"></dailyNewListItem>
    </div>
  </div>
</template>

<script lang="ts" setup>
 import { useRouter } from 'vue-router'
import dailyNewListItem from './dailyNewListItem.vue'
 const router = useRouter()

const show = ref<boolean>(true)
const handleSubmitLeave = (item:any) => {
  show.value = false
}

const handleLeave = () => {
  router.push('/product/daily_new_list')
}


</script>
<style scoped lang="scss">

</style>
